package com.tom.springframework.test.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * 模拟用户DAO
 *
 * @author zx
 * @date 2024-11-07 11:07
 */
public class UserDao {
    private static Map<String,String> map = new HashMap<>();
    static {
        map.put("10001","tom");
        map.put("10002","dd");
        map.put("10003","tomLovedDd");
    }

    public String queryUserNameById(String uId){
        return map.get(uId);
    }

    public String queryUserName(String uId) {
        return map.get(uId);
    }
}
